package com.zsk.shop.model.params;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Size;

/**
 * <p>
 * 菜单表
 * </p>
 *
 * @author stylefeng
 * @since 2018-12-07
 */
@Data
@ApiModel("菜单添加实体")
public class GopMenuAddParam {

    /**
     * 菜单名称（会和路径一致）
     */
    @ApiModelProperty(name = "menuNo", value = "菜单编号，会自动生成", dataType = "String")
    private String menuNo;

    /**
     * 菜单父级编号
     */
    @ApiModelProperty(name = "pMenuNo", value = "父级", dataType = "String")
    private String pMenuNo = "";

    /**
     * 菜单名称
     */
    @Size(max = 10, message = "菜单名称限定10子以内")
    private String name;

    /**
     * 菜单图标
     */
    private String icon = "";

    /**
     * 菜单排序号
     */
    private Integer sort = 20;

    /**
     * 是否是菜单
     */
    private String menuFlag = "Y";

    /**
     * 备注
     */
    private String description = "";

}
